#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int a[N];
int main(){
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    int n; cin >> n;
    for(int i = 1; i <= n; i++) cin >> a[i];
    int ans = n;
    sort(a + 1, a + n + 1);
    for(int i = 2; i <= n; i++){
        if(a[i] > a[i - 1]) ans--, a[i] = 2e9 + 1;
        else{
            int t = i;
            while(a[t] >= a[i] && a[t] > 0) t--;
            if(t == 0) continue;
            else ans--, a[t] = 2e9 + 1;
        }
    }
    cout << ans;
    return 0;
}
